package org.mc.api.user;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.mc.common.data.ResultData;
import org.mc.request.user.UserRequest;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Api(value = "/UserServiceV1", tags = "UserServiceV1", description = "用户操作信息服务")
@FeignClient(value = "mc-user")
public interface UserServiceV1 {

    @RequestMapping(value = "/v1/i/user/add", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiOperation(value = "添加用户", notes = "添加用户", httpMethod = "POST", tags = "UserServiceV1")
    ResultData add(@RequestBody UserRequest userRequest);

}
